namespace upload{
    const R = require('../common/baseController')
    const {upload} = require('@/service/common/uploadService')
    
    class UploadController {
        async upload (ctx:any) {
            const uploadInfo = await upload(ctx)
            ctx.body =  R.ok(uploadInfo)
        }
    }
    
    module.exports = new UploadController()
}